let { platform, version } = require('../package.json');
let config = {
    target: 'public',
    routePrefix: `${platform}/${version}`,
    port: 3001,
    theme: undefined  //可更改此值为 blue、pink 来查看不同皮肤设置
};

if(config.theme && 'string'==typeof config.theme){
    config.routePrefix = `theme_${config.theme}/${version}`;
}

function getConfig(key){
    if(!key) return config;
    return config;
}

function setCongifg(key, value){
    if(key) config[key] = value;
}

module.exports.getConfig = getConfig;
module.exports.setCongifg = setCongifg;